<div id="tiga_ba">
	<div id="tiga_baa">Ubah Data Provinsi</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
            
<?php
	$id=$_GET['id'];
	$sql="select * from propinsi where id_propinsi = '$id'";
	$qry=mysql_query($sql);
	$hasil=mysql_fetch_array($qry);
?>
<form action="utama.php?module=mod_provinsi&act=update" onsubmit="return gsValidate('provinsi','Nama Provinsi Harus Diisi','required');" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Kode Provinsi</td>
			<td>&nbsp;</td>
			<td><input name="kode" type="text" id="kode" value="<?php echo $hasil['id_propinsi']?>" class="input_small" disabled/></td>
		</tr>
		<tr>
			<td>Nama Provinsi</td>
			<td>&nbsp;</td>
			<td>
				<input name="provinsi" type="text" class="input2" id="provinsi" maxlength="50" value="<?php echo $hasil['propinsi']?>"/>
				<input name="id_provinsi" type="hidden" id="id_provinsi" value="<?php echo $hasil['id_propinsi']?>" />
				<span class="red">*</span>
			</td>
		</tr>
		<tr>
			<td>Status</td>
			<td>&nbsp;</td>
			<td>
				<?php
					if($hasil['aktif'] == 'Y'){
						echo "<input type='radio' name='status' value='Y' checked>Aktif
						<input type='radio' name='status' value='N'>Tidak Aktif";
					}else{
						echo "<input type='radio' name='status' value='Y' >Aktif
						<input type='radio' name='status' value='N' checked>Tidak Aktif";
					}
				?>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Ubah" /></td>
		</tr>
	</table>
</form>		
            
        